package com.portal.common.enums;


/**
 * 错误枚举
 *
 * @author Amadeus
 * @date 2022/07/07
 */
public enum ErrorEnum {
    /**
     * error code and message
     */
    TOKEN_USER_ERROR("-1000", "TOKEN USER NOT EXIST"),
    TOKEN_USER_SYSTEM_ERROR("-1001", "TOKEN USER NOT EXIST FROM SYSTEM"),
    //--------------------------
    USER_NOT_JURISDICTION("0000001", "无权限"),
    PARAM_EMPTY("019990", "参数为空"),
    USER_NOT_EXIT_ERROR("020000", "用户信息不存在"),
    PHONE_FORMAT_ERROR("020001", "手机号格式不正确"),
    DATA_PARAMETERS_ERROR("020002", "数据参数不正确"),
    SYSTEM_EXCEPTION_ERROR("020003", "系统异常错误"),
    TACTICS_CODE_NOT_EXIT("020004", "策略编码不存在"),
    TACTICS_INTEGRAL_ERROR("020005", "积分校验不正确"),
    TOKEN_VALIDATE_ERROR("020006", "验证失败"),
    CLIENT_NOT_EXIT_ERROR("020007", "clientId不存在"),
    MANAGE_USER_NOT_LOGIN_ERROR("020008", "用户未登陆"),
    MANAGE_USER_TOKEN_EXPIRE_ERROR("020009", "用户登陆失效"),
    AUTO_BACK_ERROR("020010", "系统已自动回退，不能进行此操作"),
    SERIAL_NO_NOT_EXIT_ERROR("020011", "流水号不存在"),
    DATA_STATE_ERROR("020012", "数据状态有误"),
    TIME_RESTRICTION_ERROR("020013", "超过次数限制"),
    EVENT_CODE_NOT_EXIT_ERROR("020014", "eventCode不存在"),
    NEGATIVE_NUMBER_ERROR("020015", "积分总数不能为负数"),
    TACTICS_CODE_EXIST_ERROR("020016", "策略编码已经存在"),
    TACTICS_GROWTH_ERROR("020017", "成长值校验不正确"),
    DURATION_EXIST_ERROR("020018", "区间数值已经存在"),
    USER_NOT_EXIST_DEPT("020019", "用户未维护部门信息，请联系管理员"),
    ROLE_CODE_ERROR("020020", "角色编码已存在"),

    DEPT_NOT_NAME_ERROR("100001", "请输入部门名！"),
    DEPT_NOT_PARENT_ERROR("100002", "未找到上级部门，请确认！"),
    DEPT_UPDATE_PARENT_LEVELINCREASE_ERROR("100003", "修改上级增长码失败"),
    DEPT_PARENT_TYPE_GREATER_NOW_TYPE_ERROR("100004", "创建部门的级别大于上级部门的级别！"),
    DEPT_DEL_ERROR("100005", "部门删除失败！"),
    DEPT_UPDATE_ISENABLE_ERROR("100006", "部门修改启用禁用失败！"),
    DEPT_UPDATE_NAME_ERROR("100007", "部门修改名称失败！"),
    DEPT_NOT_EXIT_ERROR("100008", "部门信息不存在！"),

    BRAND_NOT_NAME_ERROR("2000001", "请输入素材品牌名！"),
    BRAND_UPDATE_NAME_ERROR("200002", "修改素材品牌名失败！"),
    BRAND_DEL_ERROR("200003", "删除素材品牌失败！"),
    BRAND_UPDATEI_ISENABLE_ERROR("200004", "品牌修改启用禁用失败！"),

    TAG_NOT_NAME_ERROR("300001", "请输入标签名！"),
    TAG_UPDATE_NAME_ERROR("300002", "修改标签名失败！"),
    TAG_DEL_ERROR("300003", "删除标签失败！"),
    TAG_UPDATEI_ISENABLE_ERROR("300004", "标签修改启用禁用失败！"),

    CHANNEL_NOT_NAME_ERROR("400001", "请输入渠道名！"),
    CHANNEL_UPDATE_NAME_ERROR("400002", "修改渠道名失败！"),
    CHANNEL_DEL_ERROR("400003", "删除渠道失败！"),
    CHANNEL_UPDATEI_ISENABLE_ERROR("400004", "渠道修改启用禁用失败！"),

    SOURCE_NOT_NAME_ERROR("500001", "请输入来源名！"),
    SOURCE_UPDATE_NAME_ERROR("500002", "修改来源名失败！"),
    SOURCE_DEL_ERROR("500003", "删除来源失败！"),
    SOURCE_UPDATEI_ISENABLE_ERROR("500004", "来源修改启用禁用失败！"),

    RELATION_NOT_EXIT_ERROR("600001", "系统用户关系参数为空！"),
    RELATION_UPDATE_ERROR("600002", "系统用户关系更新失败！"),
    RELATION_ISHAVE_ERROR("600003", "系统用户关系已存在"),

    CATALOG_NOT_NAME_ERROR("700001", "请输入素材分类名！"),
    CATALOG_NOT_PARENT_ERROR("700002", "未找到上级素材分类，请确认！"),
    CATALOG_UPDATE_PARENT_LEVELINCREASE_ERROR("700003", "修改上级增长码失败"),
    CATALOG_PARENT_TYPE_GREATER_NOW_TYPE_ERROR("700004", "创建素材分类的级别大于上级部门的级别！"),
    CATALOG_DEL_ERROR("700005", "素材分类删除失败！"),
    CATALOG_UPDATE_ISENABLE_ERROR("700006", "素材分类修改启用禁用失败！"),
    CATALOG_UPDATE_NAME_ERROR("700007", "素材分类修改名称失败！"),
    CATALOG_NOT_EXIT_ERROR("700008", "素材分类信息不存在！"),

    BASE_NOT_RESOLUTION_ERROR("800001", "请输入分辨率！"),
    BASE_NOT_NAME_ERROR("800002", "请输入素材名称！"),
    BASE_DEL_ERROR("800003", "基础素材删除失败！"),
    BASE_UPDATE_ISENABLE_ERROR("800004", "基础素材启用禁用失败！"),
    BASE_UPDATE_ERROR("800005", "基础素材修改失败！"),
    BASE_NOT_EXIT_ERROR("800006", "基础素材信息不存在！"),

    CENTER_NOT_EXIT_ERROR("900001", "素材中心信息不存在！"),
    CENTER_NOT_NAME_ERROR("900002", "请输入素材名称！"),
    CENTER_UPDATEI_STATUS_ERROR("900003", "修改素材状态失败！"),
    CENTER_UPDATEI_ISENABLE_ERROR("900004", "修改素材中心启用禁用失败！"),
    CENTER_DEL_ERROR("900005", "素材中心删除失败！"),
    CENTER_UPDATE_ERROR("900006", "修改素材中心信息失败！"),
    UPDATE_ERROR("900007", "上传素材失败！"),

    THROW_EXCEPTION_ERROR("100001", "主动抛异常"),

    BASIC_MATERIAL_CREATE_FAILURE("110001", "基础素材创建失败"),
    MATERIAL_CENTER_CREATE_FAILURE("110002", "素材中心创建失败"),
    NOT_BRAND("110003", "品牌不存在，请更换！"),
    NOT_CHANNEL("110004", "渠道不存在，请更换！"),
    NOT_TAG("110005", "标签不存在，请更换！"),
    NOT_SOURCE("110006", "来源不存在，请更换！"),
    NOT_DEPT("110007", "部门不存在，请更换！"),
    MATERIAL_RESORECE_RELATION_FAILURE("110008", "素材中心明细创建失败"),

    CENTER_STATISTICS_DETAILS_ISNULL_ERROR("120001", "资源统计明细为空"),
    CENTER_STATISTICS_DETAILS_DEL_ERROR("120002", "资源统计明细删除失败"),

    CENTER_STATISTICS_DEL_ERROR("130001", "资源统计删除失败"),
    CENTER_STATISTICS_ISNULL_ERROR("130002", "资源统计为空"),
    CENTER_STATISTICS_UPDATE_ERROR("130003", "资源统计修改失败"),

    CONTENT_BASE_NOT_ERROR("140001", "基础内容不能为空"),
    CONTENT_BASE_NOT_TITLE_ERROR("140001", "请输入标题"),
    CONTENT_BASE_UPDATE_ERROR("140002", "基础内容管理修改失败"),
    CONTENT_BASE_NOT_CONTENT_ERROR("140003", "请输入内容"),
    CONTENT_BASE_DEL_ERROR("140004", "基础内容管理删除失败"),
    CONTENT_BASE_UPDATEI_ISENABLE_ERROR("140005", "基础内容管理修改是否启用失败"),
    MATERIAL_CONTENT_BASE_FAILURE("140006", "基础内容管理创建失败"),
    CONTENT_BASE_NOT_TITLEPICURL_ERROR("140007", "请选择封面图片"),
    CONTENT_CODE_NOT_ERROR("140008", "请输入内容code！"),

    MATERIAL_CONTENT_CREATE_FAILURE("150001", "内容中心创建失败"),
    MATERIAL_CONTENT_RELATION_FAILURE("150001", "内容中心明细创建失败"),
    CONTENT_CENTER_UPDATE_ERROR("150002", "内容中心修改失败"),
    CONTENT_CENTER_NOT_EXIT_ERROR("150003", "内容中心信息不存在"),
    CONTENT_CENTER_NOT_NAME_ERROR("150004", "请输入内容中心名称"),
    CONTENT_CENTER_DEL_ERROR("150005", "内容中心删除失败"),
    CONTENT_CENTER_UPDATEI_ISENABLE_ERROR("150006", "内容中心修改是否启用失败"),
    CONTENT_CENTER_UPDATEI_STATUS_ERROR("150007", "修改内容中心状态失败"),

    CONTENT_CENTER_STATISTICS_DEL_ERROR("160001", "内容统计删除失败"),
    CONTENT_CENTER_STATISTICS_ISNULL_ERROR("160002", "内容统计为空"),
    CONTENT_CENTER_STATISTICS_UPDATE_ERROR("160003", "内容统计修改失败"),


    CONTENT_CENTER_STATISTICS_DETAILS_ISNULL_ERROR("170001", "内容统计明细为空"),
    CONTENT_CENTER_STATISTICS_DETAILS_DEL_ERROR("170002", "内容统计明细删除失败"),
    CONTENT_CENTER_STATISTICS_DETAILS_UPDATE_ERROR("170003", "内容统计修改失败"),

    TOUCH_NOT_NAME_ERROR("180001", "请输入内容触点名！"),
    TOUCH_UPDATE_NAME_ERROR("180002", "修改内容触点名失败！"),
    TOUCH_DEL_ERROR("180003", "删除内容触点失败！"),
    TOUCH_UPDATE_ISENABLE_ERROR("180004", "触点修改启用禁用失败！"),


    TEMPLATE_CENTER_CREATE_ERROR("190001", "内容模板中心管理新增失败！"),
    TEMPLATE_CENTER_DELETE_ERROR("190002", "内容模板中心管理删除失败"),

    MENU_MENUCODE_SELECT_ERROR("200001", "该节点编码已存在"),


    CONTENT_LIKE_STATISTICE_NOT("210001", "没有点赞记录"),
    CONTENT_LIKE_STATISTICE_NOT_UPDATE_REDUCE("210002", "取消点赞失败"),
    CONTENT_LIKE_STATISTICE_NOT_UPDATE_ADD("210003", "点赞失败"),


    CONTENT_LIKE_STATISTICE_DETAILS_NOT("220001", "已有点赞记录"),
    CONTENT_LIKE_STATISTICE_DETAILS_ALREADY_CANCLE("220002", "已经取消点赞"),

    COMMENTTYPE_NOT_NAME_ERROR("230001", "请输入评论类型名称！"),
    COMMENTTYPE_NOT_NUMBER_ERROR("230002", "请输入评论类型编码！"),
    COMMENTTYPE_NUMBER_REPEAT_ERROR("230003", "评论类型编码已存在！"),
    COMMENTTYPE_UPDATE_ERROR("230004", "修改评论类型失败！"),
    COMMENTTYPE_DEL_ERROR("230005", "删除评论类型失败！"),
    COMMENTTYPE_NAME_TOO_LONG_ERROR("230006", "名称过长！"),
    COMMENTTYPE_NUMBER_TOO_LONG_ERROR("230007", "编码过长！"),
	COMMENTTYPE_NOT_ERROR("230008", "评论类型不存在！"),
    COMMENTDETAILS_NOT_ERROR("240001", "评论详情不存在！"),
    COMMENTDETAILS_NOT_AID_ERROR("240002", "请输入用户aid！"),
    COMMENTDETAILS_NOT_TOUCHNAME_ERROR("240003", "请输入触点名称！"),
    COMMENTDETAILS_UPDATE_ERROR("240004", "评论详情修改失败！"),
    COMMENTDETAILS_DEL_ERROR("240005", "评论详情删除失败！"),
    COMMENTDETAILS_AID_ERROR("240006", "用户aid不能为空！"),
    COMMENTDETAILS_TOUCHNAME_ERROR("240007", "触点不能为空！"),
    COMMENTDETAILS_COMMENTCONTEXT_ERROR("240008", "评论内容不能为空！"),
    CONTENT_ID_ERROR("240009", "内容id不能为空！"),
    COMMENT_ID_ERROR("240010", "评论id不能为空！"),

    ID_TOKEN_ERROR("050900","Id-Token不存在或已失效"),
    AUTHORIZATION_ERROR("050901","client-id不存在"),
    /**
     * 活动
     */
    SUPPORT_REGISTRATION_ERROR("250001","当前活动不支持报名"),
    NOT_AVAILABLE_REGISTRATION("250002","未到报名时间"),
    REGISTRATION_IS_OVER("250003","报名已结束"),
    MAKE_AN_APPOINTMENT_ERROR("250004","已过预约时间"),
    OUT_OF_TIME_QUESTIONS_ERROR("250005","已过提问时间"),
    NO_REGISTRATION_ERROR("250006","您未报名"),
    HAVE_TO_SIGN_UP_ERROR("250007","您已经报过名了"),
    ILLEGAL_CONTENT("250008","内容违规"),
    ILLEGAL_FILE("250009","文件不合法"),
    DUPLICATE_NAME_ERROR("2500010", "该名称已存在！"),
    TO_SIGN_UP_ERROR("2500011", "报名人数已满！"),
    ACTIVITY_NOT_EXIST_ERROR("2500012", "活动不存在！"),
    ACTIVITY_OFF_THE_SHELVES_ERROR("2500013", "该活动已下架！"),
    REVIEWS_DONT_EXIST_ERROR("2500014", "该评论不存在！"),
    ALREADY_SIGNED_IN_ERROR("2500015", "您已经签到过了"),
    ACTIVITY_DOES_NOT_EXIST_ERROR("2500016", "该活动不存在！"),
    ACTIVITY_DRAFT_NOT_EXIST_ERROR("2500017", "该活动没有草稿！"),
    ACTIVITY_DRAFT_ERROR("2500018", "该草稿不存在！"),
    CONTENT_NONE("240011", "该内容不存在"),
    CONTENT_REMOVE("240012", "该内容已删除"),
    CONTENT_SOLD_OUT("240013", "该内容已下架"),

    CLIENT_ID_EMPTY("270001","没有获取到触点信息"),


    CENTRAL_SERVICE("260001", "该微信并未在中控配置，详情请联系管理员"),
    ACCOUNTS_BANNED("260002", "该微信公众号已禁用，详情请联系管理员"),

    DO_NOT_ACCEPT_RECOMMENDATIONS("280001", "不可自己接受自己的推荐")
    ;


    private String code;

    private String message;

    private ErrorEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
